home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / resources / ResourceManager.as < prev    next >
Text File  |  2009-02-12  |  900b  |  40 lines

  1. package mx.resources
  2. {
  3.    import mx.core.Singleton;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class ResourceManager
  9.    {
  10.       
  11.       private static var implClassDependency:ResourceManagerImpl;
  12.       
  13.       private static var instance:IResourceManager;
  14.       
  15.       mx_internal static const VERSION:String = "3.0.0.0";
  16.        
  17.       
  18.       public function ResourceManager()
  19.       {
  20.          super();
  21.       }
  22.       
  23.       public static function getInstance() : IResourceManager
  24.       {
  25.          if(!instance)
  26.          {
  27.             try
  28.             {
  29.                instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager"));
  30.             }
  31.             catch(e:Error)
  32.             {
  33.                instance = new ResourceManagerImpl();
  34.             }
  35.          }
  36.          return instance;
  37.       }
  38.    }
  39. }
  40.